package com.itheima;

/**
 * 2025/3/24 20:42
 * 折纸案例
 */
public class WhilePractice2 {
    public static void main(String[] args) {
        //纸张的厚度
        double height = 0.1;
        //折叠的次数
        int n = 0;
        while (height < 8848860) {
//            height=height*2;
            height *= 2;
            n++;
        }

        System.out.println("折叠了" + n + "次，最终的厚度为：" + height);
    }
}
